package com.ylink.epcc;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.system.ApplicationPidFileWriter;
import org.springframework.boot.system.EmbeddedServerPortFileWriter;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;

import com.ylink.msf.apollo.ApolloConfigApplicationListener;

@EnableEurekaClient
@SpringBootApplication
public class EpccDemoCustomizationApplication {
	public static void main(String[] args) {
		SpringApplication application  = new SpringApplication(EpccDemoCustomizationApplication.class);
		application.addListeners(new ApolloConfigApplicationListener());//监听
		application.addListeners(new ApplicationPidFileWriter()); //生成进程号文件
		application.addListeners(new EmbeddedServerPortFileWriter()); //生成端口
		application.run(args);
	}
}
